import request from '@/utils/request'

// 查询保险渠道列表
export function listInsureChannel(query) {
  return request({
    url: '/insure/channel/list',
    method: 'get',
    params: query
  })
}

// 查询保险渠道详细
export function getInsureChannel(id) {
  return request({
    url: '/insure/channel/' + id,
    method: 'get'
  })
}

// 新增保险渠道
export function addInsureChannel(data) {
  return request({
    url: '/insure/channel',
    method: 'post',
    data: data
  })
}

// 新增保险渠道
export function restPwd(data) {
  return request({
    url: '/insure/channel/restPwd',
    method: 'post',
    data: data
  })
}

// 修改保险渠道
export function updateInsureChannel(data) {
  return request({
    url: '/insure/channel',
    method: 'put',
    data: data
  })
}

// 删除保险渠道
export function delInsureChannel(id) {
  return request({
    url: '/insure/channel/' + id,
    method: 'delete'
  })
}

